﻿<%@ Page Language="VB" MasterPageFile="~/WebForm/MasterPage.master" AutoEventWireup="false"
    CodeFile="ManageUser.aspx.vb" Inherits="WebForm_ManageUser" EnableEventValidation="false" %>

<%@ Register Assembly="App_Code" Namespace="My" TagPrefix="My" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table align="center" width="95%">
        <tr>
            <td>
                <asp:UpdatePanel ID="up1" runat="server" UpdateMode="conditional">
                    <ContentTemplate>
                        <asp:TreeView ID="trOrganization" runat="server" ImageSet="XPFileExplorer" ShowLines="true" CssClass="tree">
                            <Nodes>
                                <My:MyTreeNode Text="Root">
                                    <My:MyTreeNode MyText="組織1">
                                        <My:MyTreeNode MyText="人員1">
                                        </My:MyTreeNode>
                                    </My:MyTreeNode>
                                    <My:MyTreeNode MyText="組織2">
                                        <My:MyTreeNode MyText="人員2">
                                        </My:MyTreeNode>                                    
                                    </My:MyTreeNode>
                                </My:MyTreeNode>
                            </Nodes>
                            <NodeStyle Font-Size="9pt" />
                        </asp:TreeView>
                    </ContentTemplate>
                </asp:UpdatePanel>
                <asp:Panel ID="Panel2" runat="server" BorderColor="Black" CssClass="skin0" onClick="jumptoie5(event)">
                    <asp:Menu ID="ContextMenu1" runat="server" Font-Size="9pt" Width="100%">
                        <Items>
                            <asp:MenuItem Text="新增"></asp:MenuItem>
                            <asp:MenuItem Text="修改"></asp:MenuItem>
                        </Items>
                        <StaticHoverStyle BackColor="#9999FF" />
                    </asp:Menu>
                </asp:Panel>
            </td>
        </tr>
    </table>
    
        <script>
if (ie5||ns6)  
  menuobj=document.getElementById("<%= Me.Panel2.ClientID %>")  ;
  
  //alert(document.onclick);
    </script>
</asp:Content>
